from flask import Flask
from flask_cors import CORS
server = Flask("app")
CORS(server, supports_credentials=True)
@server.route('/')

def index():

    return '<h1>hello flask!<h1>'

@server.route('/info')
def info():
    file=open('info.json','r',encoding='utf-8')
    data=file.read()
    file.close()
    return data


server.run('0.0.0.0', port=8080)
# data=list(data)
# print(data[1][0])

   



